edb365a0682b49485e6439a0faa16e2e031bb4f6,src/gwt/src/org/rstudio/studio/client/projects/ui/prefs/ProjectPackratPreferencesPane.java,ProjectPackratPreferencesPane,initialize,#RProjectOptions#,72
Before Change
manageCheckBoxes();
if (!context.isPackified())
{
ThemedButton button = new ThemedButton(
"Use Packrat with this Project...",
new ClickHandler() {
@Override
public void onClick(ClickEvent event)
{
bootstrapPackrat();
}
});
spaced(button);
button.getElement().getStyle().setMarginTop(10, Unit.PX);
add(button);
}
else
{
spaced(chkAutoSnapshot_);
add(chkAutoSnapshot_);
spaced(chkVcsIgnoreLib_);
add(chkVcsIgnoreLib_);
spaced(chkVcsIgnoreSrc_);
add(chkVcsIgnoreSrc_);
}
After Change
String vcsName = session_.getSessionInfo().getVcsName();
chkVcsIgnoreLib_ = new CheckBox(vcsName + " ignore packrat library");
chkVcsIgnoreLib_.setValue(packratOptions.getVcsIgnoreLib());
spaced(chkVcsIgnoreLib_);
add(chkVcsIgnoreLib_);
chkVcsIgnoreSrc_ = new CheckBox(vcsName + " ignore packrat sources");
chkVcsIgnoreSrc_.setValue(packratOptions.getVcsIgnoreSrc());
spaced(chkVcsIgnoreSrc_);
add(chkVcsIgnoreSrc_);
manageUI(context.isPackified());